#coding=utf-8
from django.utils.translation import ugettext as _
from django.db import models

#Project types
READER_TYPE = {
'atom':0,
'rss':1,
'rss2':2
}

class Reader(models.Model):
    '''a feed reader'''
    reader_title = models.CharField(_('Reader title'),max_length=128)
    reader_url = models.CharField(_('Reader url'),max_length=255)
    reader_type = models.IntegerField(_('Reader type'),default=0)
    reader_desc = models.CharField(_('Reader description'),max_length=255)
    reader_gmtCreat = models.DateTimeField(_('Reader gmtCreate'),auto_now_add=True)
    
    def __unicode__(self):
        return self.reader_title
    class Meta:        
        verbose_name=_('Rss Reader')
        verbose_name_plural = _('Rss Reader')
    class Admin:
        list_display = ('project_name','project_slug','project_tasks','project_created')
        list_filter =('reader_title',)
